package com.spring.xiatian.enums;

/**
 * Created by Created by xiaoxia on 2018/5/1 0001 0:16.
 */
public class ResultEnum {

    public enum UserEnums{
        SUCCESS(0000,"成功"),
        PARAM_ERROR(1001,"user参数错误"),
        SYS_ERROR(9999,"用户服务错误"),
        ;

        private int code;

        private String msg;

        UserEnums(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

    public enum OrderEnums{
        SUCCESS(0000,"成功"),
        PARAM_ERROR(1002,"order参数错误"),
        SYS_ERROR(9999,"order系统错误"),

        ;
        private int code;

        private String msg;

        OrderEnums(int code, String msg) {
            this.code = code;
            this.msg = msg;
        }

        public int getCode() {
            return code;
        }

        public String getMsg() {
            return msg;
        }
    }

}
